package com.thouiot.modbus.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "touhou.modbus.master")
public class ModbusMasterProperties {

    private boolean enableInit = false;

    private List<ModbusMasterTcp> tcpMasters;

    private List<ModbusMasterUdp> udpMasters;

    private List<ModbusMasterAscii> asciiMasters;

    private List<ModbusMasterRtu> rtuMasters;

    public boolean isEnableInit() {
        return enableInit;
    }

    public void setEnableInit(boolean enableInit) {
        this.enableInit = enableInit;
    }

    public List<ModbusMasterTcp> getTcpMasters() {
        return tcpMasters;
    }

    public void setTcpMasters(List<ModbusMasterTcp> tcpMasters) {
        this.tcpMasters = tcpMasters;
    }

    public List<ModbusMasterUdp> getUdpMasters() {
        return udpMasters;
    }

    public void setUdpMasters(List<ModbusMasterUdp> udpMasters) {
        this.udpMasters = udpMasters;
    }

    public List<ModbusMasterAscii> getAsciiMasters() {
        return asciiMasters;
    }

    public void setAsciiMasters(List<ModbusMasterAscii> asciiMasters) {
        this.asciiMasters = asciiMasters;
    }

    public List<ModbusMasterRtu> getRtuMasters() {
        return rtuMasters;
    }

    public void setRtuMasters(List<ModbusMasterRtu> rtuMasters) {
        this.rtuMasters = rtuMasters;
    }
}
